package com.bzframework.pro.authorize.web;

import com.bzframework.pro.authorize.adapter.ReactiveServiceCrudControllerAdapter;
import com.bzframework.pro.authorize.entity.UserEntity;
import com.bzframework.pro.authorize.service.UserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.hswebframework.web.crud.service.ReactiveCrudService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author bingzhong
 * @Date 2024/11/29 10:12
 * @Description
 */
@Tag(name = "用户管理")
@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
public class UserController implements ReactiveServiceCrudControllerAdapter<UserEntity, String> {

    private final UserService userService;

    @Override
    public ReactiveCrudService<UserEntity, String> getService() {
        return userService;
    }

}
